#pragma once
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>

#define InitListSize 4
typedef int SeqListDateType;

typedef struct SeqList
{
	SeqListDateType* a;
	int size;
	int capacity;
}SeqList;

void SeqListInit(SeqList* ps);
void SeqListDestroy(SeqList* ps);

void SeqListPrint(SeqList* ps);

void SeqListPushBack(SeqList* ps, SeqListDateType x);
void SeqListPushFront(SeqList* ps, SeqListDateType x);
void SeqListPopFront(SeqList* ps);
void SeqListPopBack(SeqList* ps);

int SeqListFind(SeqList* ps, SeqListDateType x);

void SeqListInsert(SeqList* ps, int pos, SeqListDateType x);
void SeqListErase(SeqList* ps, int pos);